package cn.flying.cloud.base.common.utils;

/**
 * @author: admin
 * @date: 2023年02月15日 15:36
 * @version: 1.0
 */
public class Main {
    public static void main(String[] args) {
//        User user = new User();
//        user.setNum("10001");
//        user.setName("");
//        user.setAge(20);
//        user.setSal(new BigDecimal("1234567.123"));
//
//
//        ValidationUtil.validateFastFail(user);

//        System.out.println(JSON.toJSONString(Rt.error(RtCodeEnum.R10005), JSONWriter.Feature.WriteMapNullValue));

//        Set ids = new HashSet();
//        long start = System.currentTimeMillis();
//        for (int i = 0; i < 300; i++) {
//            long genId = Ft.Snowflake.nextId();
//            System.out.println(genId);
//            ids.add(genId);
//        }
//        long end = System.currentTimeMillis();
//        System.out.println("共生成id[" + ids.size() + "]个，花费时间[" + (end - start) + "]毫秒");

//        System.out.println(UUID.randomUUID().toString().replaceAll("-", ""));

        System.out.println(Ft.SM3.encrypt("f11030d915934fe18122e0f856e6511c", "878a3540cfc344d48353ab799d154623"));
        System.out.println(Ft.SM3.encrypt("2b0e5fd91b704ad28909bb4cfee4dceb", "878a3540cfc344d48353ab799d154623"));
    }
}
